package org.ftc.service;

import java.util.List;

import org.ftc.dao.CTMapDao;
import org.ftc.domain.CTMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CTMapService {
	
	@Autowired
	CTMapDao ctMapDao;
	@Autowired
	private UsersService usersService;
	
	public CTMap load(String id) {
		return ctMapDao.load(id);
	}

	public CTMap get(String id) {
		return ctMapDao.get(id);
	}
	
	public synchronized boolean save(CTMap entity) {
		return ctMapDao.save(entity);
	}


	public synchronized boolean saveOrUpdate(CTMap entity) {
		return ctMapDao.saveOrUpdate(entity);
	}

	public synchronized boolean update(CTMap entity) {
		return ctMapDao.update(entity);
	}

	public synchronized boolean delete(CTMap entity) {
		return ctMapDao.delete(entity);
	}

	public synchronized boolean delete(String id) {
		return ctMapDao.delete(id);
	}
	

	public List<CTMap> findAll() {
		return ctMapDao.findAll();
	}
	
	public List<CTMap> findAll(String tCode) {
		return ctMapDao.findAll(tCode);
	}

	public long countAll() {
		return ctMapDao.countAll();
	}
	
	
	
}
